'''
pyQuery 

Test case for string statement q.s_<..>

@author: Yauhen Yakimovich
'''
import unittest
from pyQuery import q

class Test(unittest.TestCase):

    def testSomeStringFunctions(self):
        r = q('foo').s_replace('f', 'b').s_replace('o','a').r
        self.assertEquals(r, 'baa')
        
    def testStringWrap(self):
        r = q('1234').s[1:3].r
        self.assertEquals(r, '23')

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()
